<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<tpl> $NCharset </tpl>" />
<link href="<tpl> $template_dir </tpl>/member/css/layout.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" type="text/javascript" src="../js/common.inc.js"></script>
<!-- 
.table_white th {
	font-weight: normal;
}
 -->
</style>
<script>
function selectType(value)
{
	if (value == 1)
	{
		document.getElementById('online_display').style.display = '';
		document.getElementById('downline_display').style.display = 'none';
	}
	else
	{
		document.getElementById('online_display').style.display = 'none';
		document.getElementById('downline_display').style.display = '';
		document.getElementById('exchange').style.display = 'none';
		document.getElementById('exchange_paypal').style.display = 'none';
	}
}
</script>
<tpl> include file ='../head.config.html' </tpl>
</head><body> <tpl>include file ='../header.html'</tpl> 
<div id="container761">
 <tpl>include file ='own_menu.html'</tpl>
  <div class="member_right">
  <div class="new_main_left1">
	<h1 class="new_text"><tpl>$langMemeberPayment</tpl></h1>
	</div>
		<div id="own_main_rightop">
 
    
</div>
<div id="own_main_rightop_line" style="margin-top:-3px;">
	  <b class="b4"></b>
	  <b class="b3"></b>
	  <b class="b2"></b>
	  <b class="b1"></b>
	  </div>
  <tpl>include file ='../InfoSelectorTarget.html'</tpl>
    <form action="own_member_pay.php?action=payment" method="post" name="form_mode" id="form_mode">
    <table border="0" cellpadding="0" cellspacing="0" style="border:1px solid #CCCCCC">
    	<tr>
   		  <td height="22" align="center" bgcolor="#fafafa"><tpl> $langMPPayMode </tpl>：</td>
    		<tpl> if $mode_type eq 'ontime' </tpl>
    		<td height="25" bgcolor="#fafafa">
    			<select name="textMode" id="textMode" style="width:200px">
    				<tpl> section name=item loop=$mode_list </tpl>
    					<option value="<tpl> $mode_list[item].mode_id </tpl>">
    						<tpl> $langMPPay </tpl><tpl> $mode_list[item].mode_money </tpl><tpl> $langCYuan </tpl>/<tpl> $langMPAvailability </tpl><tpl> $mode_list[item].mode_time </tpl><tpl> $langMPDay </tpl>
    					</option>
    				<tpl> /section </tpl>
		  </select>   		  </td>
    		<tpl> /if </tpl> 
    		<tpl> if $mode_type eq 'onnumber' </tpl>
    		<td bgcolor="#fafafa">
    			<select name="textMode" id="textMode" style="width:250px">
    				<tpl> section name=item loop=$mode_list </tpl>
    					<option value="<tpl> $mode_list[item].mode_id </tpl>">
    						<tpl> $langMPPay </tpl><tpl> $mode_list[item].mode_money </tpl><tpl> $langCYuan </tpl>/<tpl> $langMPCanSaleProduct </tpl><tpl> $mode_list[item].mode_product_number </tpl><tpl> $langMPPiece </tpl>/<tpl> $langMPCanShow </tpl><tpl> $mode_list[item].mode_product_show_day </tpl><tpl> $langMPDay </tpl>
    					</option>
    				<tpl> /section </tpl>
    			</select>
   		  </td>
    		<tpl> /if </tpl> 
    	</tr>
    	<tpl> if $mark eq 3 </tpl>
	    	<tr>
    		  <td height="25" align="center" bgcolor="#fafafa"><tpl> $langMPPayFashion </tpl>：</td>
	    		<td height="25" bgcolor="#fafafa">
	    			<select id="selectPayType" name="selectPayType" style="width:80px" onchange="selectType(this.value)">
	    				<option value="1"><tpl> $langMPOnlinePay </tpl></option>
	    				<option value="2"><tpl> $langMPLineDownPay </tpl></option>
	    			</select>
    		  </td>
			  <td bgcolor="#fafafa"></td>
	    	</tr>
	    	<tr>
		    	<td height="25" colspan="2" align="center" bgcolor="#fafafa">
		    		<table id="online_display">
		    			<tpl> section name=item loop=$pay_online </tpl>
		    				<tr>
		    					<td align="right"><input type="radio" name="select_id" value="<tpl> $pay_online[item].pay_id </tpl>" onclick="show_exchange(<tpl> $pay_online[item].pay_id </tpl>);"/>&nbsp;</td>
		    					<td>
		    						<tpl> $pay_online[item].pay_name </tpl>
		    					</td>
		    				</tr>
		    			<tpl> /section </tpl>
		    				<tr>
		    					<table id="exchange" border="1" style="display:none;">
			    					<tr>
								    <td align="center"><tpl> $langMPSelectCurrency </tpl>：</td>
								    <td>
								   		<input type="radio" name="select_currency" value="CNY" />CNY		
								    </td>
								    </tr>
							    </table>
							    <table id="exchange_paypal" border="1" style="display:none;">
			    					<tr>
								    <td align="center"><tpl> $langMPSelectCurrency </tpl>：</td>
								    <td>
								   <tpl> section name=item loop=$currency_info </tpl>
								    	<input type="radio" name="select_currency" value="<tpl> $currency_info[item] </tpl>" />
								    	<tpl> $currency_info[item] </tpl>
								    <tpl> /section </tpl>
								    </td>
								    </tr>
							    </table>
							</tr>  
		    		</table>
		    		<table id="downline_display"  style="display:none">
		    				<tr>
		    					<th><tpl> $langMPSelect </tpl></th>
		    					<th><tpl> $langMPBankName </tpl></th>
		    					<th><tpl> $langMPBankAccounts </tpl></th>
		    				</tr>
		    			<tpl> section name=item loop=$pay_downline </tpl>
		    				<tr>
		    					<td align="center"><input name="select_id" type="radio" value="<tpl> $pay_downline[item].pay_id </tpl>" /></td>
		    					<td align="center"><img src="<tpl> $pay_downline[item].pay_ico </tpl>" /></td>
		    					<td align="center"><tpl> $pay_downline[item].pay_account </tpl></td>
		    				</tr>
		    			<tpl> /section </tpl>
		    		</table>
	    	  </td>
			  <td bgcolor="#fafafa"></td>
	    	</tr>
    	<tpl> /if </tpl>
    	<tpl> if $mark eq 2 </tpl>
	    	<tr>
    		  <td height="25" align="center" bgcolor="#fafafa"><tpl> $langMPPayFashion </tpl>：</td>
	    		<td height="25" bgcolor="#fafafa">
	    			<select id="selectPayType" name="selectPayType" style="width:80px">
	    				<option value="2"><tpl> $langMPLineDownPay </tpl></option>
	    			</select>
    		  </td>
			    <td bgcolor="#fafafa"></td>
	    	</tr>
	    	<tr>
		    	<td height="25" colspan="2" bgcolor="#fafafa">
		    		<table border="1" cellpadding="0" cellspacing="0" bordercolor="#DDE0E3" id="downline_display">
		    				<tr>
		    					<th><tpl> $langMPSelect </tpl></th>
		    					<th><tpl> $langMPBankName </tpl></th>
		    					<th><tpl> $langMPBankAccounts </tpl></th>
		    				</tr>
		    			<tpl> section name=item loop=$pay_downline </tpl>
		    				<tr>
		    					<td align="center"><input name="select_id" type="radio" value="<tpl> $pay_downline[item].pay_id </tpl>" /></td>
		    					<td align="center"><img src="<tpl> $pay_downline[item].pay_ico </tpl>" /></td>
		    					<td align="center"><tpl> $pay_downline[item].pay_account </tpl></td>
		    				</tr>
		    			<tpl> /section </tpl>
	    		  </table>
	    	  </td>
			    <td bgcolor="#fafafa"></td>
	    	</tr>
    	<tpl> /if </tpl>    
    	<tpl> if $mark eq 1 </tpl>
	    	<tr>
    		  <td height="25" align="center" bgcolor="#fafafa"><tpl> $langMPPayFashion </tpl>：</td>
	    		<td height="25" bgcolor="#fafafa">
	    			<select id="selectPayType" name="selectPayType" style="width:80px">
	    				<option value="2"><tpl> $langMPOnlinePay </tpl></option>
	    			</select>
    		  </td>
			  <td bgcolor="#fafafa"></td>
	    	</tr>
	    	<tr>
	    		<td height="25" bgcolor="#fafafa"></td>
		    	<td height="25" bgcolor="#fafafa">
		    		<table id="online_display">
		    			<tpl> section name=item loop=$pay_online </tpl>
		    				<tr>
		    					<td align="right"><input type="radio" name="select_id" value="<tpl> $pay_online[item].pay_id </tpl>" onclick="show_exchange(<tpl> $pay_online[item].pay_id </tpl>);"/>&nbsp;</td>
		    					<td>
		    						<tpl> $pay_online[item].pay_name </tpl>
		    					</td>
		    				</tr>
		    			<tpl> /section </tpl>
		    				<tr>
		    					<table id="exchange" border="1" style="display:none;">
			    					<tr>
								    <td align="center"><tpl> $langMPSelectCurrency </tpl>：</td>
								    <td>
								   		<input type="radio" name="select_currency" value="CNY" />CNY		
								    </td>
								    </tr>
							    </table>
							    <table id="exchange_paypal" border="1" style="display:none;">
			    					<tr>
								    <td align="center"><tpl> $langMPSelectCurrency </tpl>：</td>
								    <td>
								   <tpl> section name=item loop=$currency_info </tpl>
								    	<input type="radio" name="select_currency" value="<tpl> $currency_info[item] </tpl>" />
								    	<tpl> $currency_info[item] </tpl>
								    <tpl> /section </tpl>
								    </td>
								    </tr>
							    </table>
							</tr>  
		    		</table>
	    	  </td>
			  <td bgcolor="#fafafa"></td>
	    	</tr>
    	<tpl> /if </tpl>
  		
	    <tr>
			<td height="25" colspan="2" align="center" bgcolor="#fafafa">
	    		<input type="submit" name="Submit" value="<tpl> $langMPConfirmPay </tpl>" class="new_anniu"/>
   		  </td>
		    <td bgcolor="#fafafa"></td>
    	</tr>
    </table>
    </form>
  </div>
  <tpl> include file ='../../../html/footer.html' </tpl> 
</div>
</body>
</html>
<script>
function show_exchange(str)
{
	if (str == 1 || str == 3)
	{
		document.getElementById('exchange').style.display = '';
		document.getElementById('exchange_paypal').style.display = 'none';
	}
	else
	{
		document.getElementById('exchange').style.display = 'none';
		document.getElementById('exchange_paypal').style.display = '';
	}
}
</script>